<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
	
<script>
	function id_check() {
		if (document.getElementById("uid").value != "") {
			document.getElementById("join").action = "idCheck";
			document.getElementById("join").submit();
		}
	}
	function pw_check() {
		if ((document.getElementById("uid").value != "" && document
				.getElementById("pw1").value != "")
				&& (document.getElementById("name").value != "" && document
						.getElementById("email").value != "")) {
			if (document.getElementById("pw1").value == document
					.getElementById("pw2").value) {

				if (document.getElementById("birthYear").value != "") {
					document.getElementById("dateOfBirth").value = document
							.getElementById("birthYear").value
							+ "-"
							+ document.getElementById("birthMonth").value
							+ "-" + document.getElementById("birthDay").value;
				}
				if (document.getElementById("phone1").value != "") {
					document.getElementById("phoneNumber").value = document
							.getElementById("phone1").value
							+ "-"
							+ document.getElementById("phone2").value
							+ "-" + document.getElementById("phone3").value;
				}

				document.getElementById("join").submit();
			} else {
				window.alert("비밀번호를 확인하세요.");
			}
		} else {
			window.alert("필수 정보를 입력하세요.");
		}
	}
</script>
<style type="text/css">
.error {
	color: #ff0000;
	font-weight: bold;
}

table {
	width: 750px;
	border-collapse: collapse;
	text-align: center;
	font-family: 'Trebuchet MS';
}

td,th {
	font-size: 10pt;
	border: 1px solid #96aae3;
	height: 30px;
}

th {
	background-color: #5075dd; /* 테이블 배경색 */
	color: #ffffff; /*  글씨색깔  */
	font-family: Georgia;
}

tr.alt td {
	color: #000000;
	background-color: #EAF2D3;
}

.bt_view {
	background-color: #8099de;
	border: 1px solid #999;
	width: 80px;
	height: 18px;
	border-radius: 8px;
	border: none;
	margin: 0 0 0 5px;
	font-weight: bold;
	font-size: 0.9em;
	color: #FFF;
	background-image: url(../images/member/dup.jpg);
	background-repeat: repeat-x;
	background-position: center center;
}
</style>


<h1 align="center">
	Board Write <br>
</h1>

<form method="POST" action="<c:url value="/board/boardWriteSuccess"/>">
	<table border="1" style="width:750px">
		<tr>
			<th><pre> 제 목 </pre></th>
			<td align="left" colspan="6"><textarea rows="1" cols="84"
					style="overflow:hidden" name="subject"></textarea></td>
		</tr>
		<tr>
			<th colspan="6" align="center">내 용</th>
		</tr>
		<tr>
			<td colspan="6"><textarea rows="20" cols="90" name="content" style="overflow:hidden"></textarea></td>
		</tr>
	</table>
	<input name="memberId" type="hidden"
		value="<sec:authentication property="name" />" /> <input
		name="boardType" type="hidden" value="${boardType }" /><p><input
		type="submit" value="등록" class="bt_view" />
</form>
